/*
 * BasicaHelper.java
 *
 * Created on 31 de octubre de 2006, 09:39 AM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.src.computec.radar.consultas.basica.helper;

import com.src.computec.radar.base.dao.exception.DAOException;
import com.src.computec.radar.consultas.base.helper.BaseHelper;
import com.src.computec.radar.consultas.basica.dao.BaseBasicaDAO;
import com.src.computec.radar.consultas.basica.exception.BasicaException;
import com.src.computec.radar.services.utilities.dto.ParametroBusquedaDto;
import java.util.List;

/**
 *
 * @author andresoc
 */
public class BasicaHelper extends BaseHelper {
    
    /** Creates a new instance of BasicaHelper */
    public BasicaHelper() {
    }
    
    public List getEnviosByParametroBusqueda(ParametroBusquedaDto dto) throws BasicaException {
        BaseBasicaDAO dao = (BaseBasicaDAO) this.getFactoryDAO().getBasicaDAO();
        try {
            return dao.getEnviosByParametroBusqueda(dto);
        }
        catch (DAOException e) {
            throw new BasicaException("BasicaHelper:getEnviosByParametroBusqueda:" + e.toString());
        }
    }
}